package com.weiqiao.mall.repository;

import org.bson.Document;
import org.bson.conversions.Bson;

import java.util.List;

public interface IStrategyRepository {
    /**
     * 攻略列表
     * @param filter
     * @param sort
     * @param skip
     * @param limit
     * @return
     */
    List<String> strategyList(Bson filter, Bson sort, int skip, int limit);

    /**
     * 攻略修改
     * @param filter
     * @param doc
     * @return boolean
     */
    Boolean updateStrategy(Bson filter, Document doc);
    /**
     * 新增修改
     * @param json	内容
     * @return boolean
     */
    Boolean insertStrategy(String json);
    /**
     *  删除攻略
     * @param filters
     * @param doc
     * @return
     */
    Boolean deleteStrategy(Bson filters, Document doc);
    /**
     * 查询分页总数
     * @param filters
     * @return
     */
    int countStrategy( Bson filters);

    /**
     * 获取详情
     * @param filter
     * @return
     */
    String getStrategyInfo(Bson filter);
}
